package create;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: fzykd
 * Date: 2023-01-11
 * Time: 11:45
 */

//继承Thread类 匿名内部类
public class Demo2 {
    public static void main(String[] args) {
        Thread t = new Thread(){
            @Override
            public void run() {
                System.out.println("同样是继承Thread类 只是匿名内部类！");
            }
        };
        t.start();
    }
}
